package com.ruoyi.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * APP实名认证信息对象 ap_user_realname
 *
 * @author ruoyi
 * @date 2023-12-01
 */
@TableName("ap_user_realname")
public class ApUserRealname implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 账号ID
     */
    @Excel(name = "账号ID")
    private String userId;

    /**
     * 用户名称
     */
    @Excel(name = "用户名称")
    private String name;

    /**
     * 资源名称
     */
    @Excel(name = "资源名称")
    private String idno;

    /**
     * 正面照片
     */
    @Excel(name = "正面照片")
    private String fontImage;

    /**
     * 背面照片
     */
    @Excel(name = "背面照片")
    private String backImage;

    /**
     * 手持照片
     */
    @Excel(name = "手持照片")
    private String holdImage;

    /**
     * 活体照片
     */
    @Excel(name = "活体照片")
    private String liveImage;

    /**
     * 状态
     * 0 创建中
     * 1 待审核
     * 2 审核失败
     * 9 审核通过
     */
    private String status;

    /**
     * 拒绝原因
     */
    @Excel(name = "拒绝原因")
    private String reason;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitedTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setIdno(String idno) {
        this.idno = idno;
    }

    public String getIdno() {
        return idno;
    }

    public void setFontImage(String fontImage) {
        this.fontImage = fontImage;
    }

    public String getFontImage() {
        return fontImage;
    }

    public void setBackImage(String backImage) {
        this.backImage = backImage;
    }

    public String getBackImage() {
        return backImage;
    }

    public void setHoldImage(String holdImage) {
        this.holdImage = holdImage;
    }

    public String getHoldImage() {
        return holdImage;
    }

    public void setLiveImage(String liveImage) {
        this.liveImage = liveImage;
    }

    public String getLiveImage() {
        return liveImage;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getReason() {
        return reason;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setSubmitedTime(Date submitedTime) {
        this.submitedTime = submitedTime;
    }

    public Date getSubmitedTime() {
        return submitedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("name", getName())
                .append("idno", getIdno())
                .append("fontImage", getFontImage())
                .append("backImage", getBackImage())
                .append("holdImage", getHoldImage())
                .append("liveImage", getLiveImage())
                .append("status", getStatus())
                .append("reason", getReason())
                .append("createdTime", getCreatedTime())
                .append("submitedTime", getSubmitedTime())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
